#ifndef RECORDINGTHREAD_H
#define RECORDINGTHREAD_H

#include <QThread>

struct AVFormatContext;
struct AVCodecContext;
class QFile;

class CRecordingThread : public QThread
{
	Q_OBJECT
public:
	CRecordingThread(QObject* parent = nullptr);
	void setRecordStatus(bool bIsRecoring);
	void setFormatContext(AVFormatContext* pFmtCtx);
	void setFile(QFile* pFile);
    void run();

private:
	AVCodecContext* openCodec();

private:
	AVFormatContext* m_pFmtCtx;
	QFile* m_pFile;
	bool m_bIsRecoring;
};



#endif
